<?php

namespace common\models\ar;

use Yii;

/**
 * This is the model class for table "pay_val_id".
 *
 * @property int $id
 * @property int $userID
 * @property string $value_id 存储对应的秘钥
 */
class PayValId extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'pay_val_id';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'userID', 'value_id'], 'required'],
            [['id', 'userID'], 'string', 'max' => 10],
            [['value_id'], 'string', 'max' => 100],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userID' => 'User ID',
            'value_id' => 'Value ID',
        ];
    }
}
